<?php $this->load->view('../layout/header_s_n'); ?>
<div id="container">
<style type="text/css">
    #sbox{width:100%;height:100%;position:absolute;left:0;top:72px;}
    #wrap{/* ... */top:0px;}
</style>
<script>
    $(document).ready(function () {
        var _window = $(window);
        var wrapBox = $("#sbox");
        function setHei() {
            var boxHei = _window.height() - 72;
            wrapBox.css("height", boxHei + "px");
        }
        setHei();
        _window.resize(setHei);
    });
</script>
<div class="header fixheader">

    <?php $this->load->view('../layout/nav'); ?>
</div>


<div id="sbox" >
    <div class="scroll" id="wrap" >
        <?php foreach($ad_list['list'] as $k=>$v):?>
            <div class="box">
                <div style="background:url(<?php echo $v['adpath']?>) center center no-repeat;" class="box<?php echo $k+1;?>_bg "> <a target="_blank" href="/cn/product-details-20.html"> </a></div>
            </div>
        <?php endforeach ;?>
        <div class="btn">
            <ul>
                <?php foreach($ad_list['list'] as $k=>$v):?>
                    <li class="list<?php echo $k+1;if($k==0){echo ' active';}elseif($k==3){echo ' last';}?>"><span>&nbsp;</span></li>
                <?php endforeach ;?>
            </ul>
        </div>
    </div>
</div>

<!-- content end -->


<?php $this->load->view('../layout/footer')?>

</div>
